﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Api.Models
{
    #region 翻页请求
    public class ReqPageModel
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageSize { get; set; }
    }
    #endregion

    #region 验证短信验证码(找回密码和绑定共用)
    public class ReqSMSVerifyCodeModel
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        public string PhoneNo { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 验证类型1:绑定，2找回密码
        /// </summary>
        public int TypeId { get; set; }
    }
    #endregion

    #region 邮箱验证码验证
    public class ReqEmailVerifyCodeModel
    {
        public string Email { get; set; }

        public string Code { get; set; }

        /// <summary>
        /// 验证类型1:绑定，2找回密码
        /// </summary>
        public int TypeId { get; set; }
    }
    #endregion

    #region 绑定电话号码或邮箱地址
    public class ReqBindModel
    {
        /// <summary>
        /// 电话号码或邮箱地址
        /// </summary>
        public string Data { get; set; }

        /// <summary>
        /// 验证类型2:绑定电话，1绑定邮箱
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 1-绑定邮箱，1-重置密码
        /// </summary>
        public int Opertype { get; set; }
    }
    #endregion

    #region 重置密码
    public class ReqRestPwdModel
    {
        public string Account { get; set; }
        public string Email { get; set; }
        public string Code { get; set; }
        public string Password { get; set; }
    }
    #endregion

    #region 修改密码
    public class ReqEditPwdModel
    {
        public string OldPassword { get; set; }
        public string Password { get; set; }
    }
    #endregion

    #region 获取声音
    public class ReqVoiceEntity
    {
        public string Text { get; set; }
    }
    #endregion

    #region 修改推送ID
    public class ReqEditPushModel
    {
        public string PushID { get; set; }
    }
    #endregion

    #region 设置头像
    public class ReqEditFaceModel
    {
        /// <summary>
        /// 用户类型：0-APP，1-学生证
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 证件ID
        /// </summary>
        public int CardID { get; set; }

        /// <summary>
        /// 头像ID
        /// </summary>
        public int AvatarId { get; set; }
    }
    #endregion

    #region 版本升级验证
    public class ReqUpgradeModeModel
    {
        public int VerNo { get; set; }

        //1:android,2:ios
        public string Device { get; set; }
    }
    #endregion

    #region 发送验证码
    /// <summary>
    /// 发送验证码
    /// </summary>
    public class ReqSendCodeModel
    {
        public string Imei { get; set; }
    }
    #endregion

    #region 添加证件
    /// <summary>
    /// 添加证件
    /// </summary>
    public class ReqRelationCardModel
    {
        /// <summary>
        /// 类型，0-二维码，1-IMEI
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 验证码（可选），Type为1时输入
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        ///  二维码/IMEI
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string PhoneNo { get; set; }
    }
    #endregion

    #region 证件ID
    public class ReqCardIDModel
    {
        public int CardID { get; set; }

        public int MemberID { get; set; }

        public string Code { get; set; }
    }
    #endregion

    #region 更换证件
    public class ReqChangeCardModel : ReqCardIDModel
    {
        public string NewImei { get; set; }

        public string Code { get; set; }
    }
    #endregion

    #region 修改信息
    public class ReqEditInfoModel : ReqCardIDModel
    {
        public string Name { get; set; }

        public string PhoneNo { get; set; }
    }
    #endregion

    #region 修改参数
    public class ReqEditParaModel : ReqCardIDModel
    {
        /// <summary>
        /// 类型：0-免打扰参数(免打扰选项|参数)，1-闹钟信息（WWHHmm,Hint;），2-定位模式，3-自动开关机参数，4-电话本（pn1,s,n;pn2,s,n;
        /// pn号码，s短号，n称谓），5-白名单（pn1;pn2;），6-sos（pn1;pn2;）
        /// </summary>
        public int Type { get; set; }

        public string Para { get; set; }
    }
    #endregion

    #region 设置围栏
    public class ReqSetAreaModel : ReqCardIDModel
    {
        /// <summary>
        /// 操作类型:0-新增,1-修改2-删除
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 区域ID
        /// </summary>
        public int AreaID { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 通知标识
        /// </summary>
        public int NotifyID { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public byte[] Para { get; set; }
    }
    #endregion

    #region 设置围栏
    public class ReqPositionModel : ReqCardIDModel
    {
        /// <summary>
        /// 类型：0-历史轨迹，1-最新位置
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 区域ID
        /// </summary>
        public int AreaID { get; set; }

        public string StartTime { get; set; }
        public string EndTime { get; set; }
    }
    #endregion

}